// CPP1 定义变量
#include <iostream>
using namespace std;

int main() {

    // write your code here......
    char a ;
    int b;
    long d;
    double c ;
    cout<< sizeof(a)<<endl;
    cout<<sizeof(b)<<endl;
    cout<<sizeof(d)<<endl;
    cout<<sizeof(c)<<endl;
    return 0;
}

// CPP2 实现四舍五入
#include <iostream>
#include<cmath>
using namespace std;

int main() {
   double a;
    cin >> a;
    a = round(a);
    cout<<a; 
}

// CPP3 两数求和
#include <iostream>
using namespace std;

int main() {
    int a , b;
    cin>>a;
    cin>>b;
    cout<< a + b;
    return 0;
}

// CPP4 获取两数中的较大值
#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin >> a;
    cin >> b;
    cout<< (a > b ? a : b);
    return 0;
}

// CPP5 简单运算
#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin >> a;
    cin >> b;
    cout << a + b << " ";
    cout << (a > b ? (a - b) : (b - a)) << " " ;
    cout <<  a * b << " ";
    cout << (a > b ? (a / b) : (b / a)) << " ";
    cout << (a > b ? (a % b) : (b % a)) ;
    return 0;
}

// CPP6 交换两个变量的值
#include <iostream>
using namespace std;

int main() {

    int a = 0;
    int b = 0;
    cin >> a;
    cin >> b;
    int c ;
    c = a ;
    a = b ;
    b = c ;

    cout << a << " " << b << endl;
    
    return 0;
}

// CPP7 获取三个数中的最大值（三元表达式实现）  
//    1
#include <iostream>
using namespace std;

int main() {
    
    int a, b, c;
    cin >> a;
    cin >> b;
    cin >> c;

    int d = (a > b ? a : b);
    cout << (d > c ? d : c );

    return 0;
}

//    2
  cout << ((a > b ? a : b ) > c ? (a > b ? a : b ) : c);


  